{extend name='common/dialog'}
{block name='content'}
<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-body">
                <form class="form-horizontal" data-toggle="validator" method="POST" role="form" data-loading="3">
                    <div class="form-group">
                        <label for="title" class="control-label">父级</label>
                        <div class="form-item">
                            <select name="row[pid]" id="c-pid" class="form-control" data-id="{$row.id}" data-pid="{$row.pid}">
                                {foreach $group_list as $k=>$v}
                                <option value="{$v['id']}"{if $row.pid==$v['id']} selected {/if}>{$v['title']}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="title" class="control-label">组名</label>
                        <div class="form-item">
                            <input type="text" class="form-control" data-rule="required" name="row[title]"
                                   id="title" placeholder="组名"
                                   value="{$row.title}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="title" class="control-label">对应权限</label>
                        <div class="form-item">
                            <input type="text" class="form-control" name="row[rules]"
                                   id="rules" placeholder="权限，不要修改哦" readonly
                                   value="{$row.rules}"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="title" class="control-label">选择权限</label>
                        <div class="form-item">
                            <ul id="z-tree" class="ztree"></ul>
                        </div>
                    </div>
                    <div class="form-group hidden layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-success btn-embossed disabled">提交</button>
                            <button type="reset" class="btn btn-default btn-embossed">重置</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
{/block}